package test.vo;

import java.util.List;

/**
 * 代码配置
 * 
 * @author xuejianxin
 *
 */
public final class CodeConfig {
	private String name;
	private String baseDir;
	private String basePackage;
	private List<Tempate> templates;
	private String templateDir;

	public String getBaseDir() {
		return baseDir;
	}

	public void setBaseDir(String baseDir) {
		this.baseDir = baseDir;
	}

	public String getBasePackage() {
		return basePackage;
	}

	public void setBasePackage(String basePackage) {
		this.basePackage = basePackage;
	}

	public List<Tempate> getTemplates() {
		return templates;
	}

	public void setTemplates(List<Tempate> templates) {
		this.templates = templates;
	}
	
	
	

	public String getTemplateDir() {
		return templateDir;
	}

	public void setTemplateDir(String templateDir) {
		this.templateDir = templateDir;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "CodeConfig [baseDir=" + baseDir + ", basePackage=" + basePackage + ", templates=" + templates + "]";
	}




	public static final class Tempate {
		private String id;// 列id
		private String name;// 中文名称
		private String dir;// 生成文件的目录
        private String fileName;
		
		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getDir() {
			return dir;
		}

		public void setDir(String dir) {
			this.dir = dir;
		}
		
		

		public String getFileName() {
			return fileName;
		}

		public void setFileName(String fileName) {
			this.fileName = fileName;
		}

		@Override
		public String toString() {
			return "Tempate [id=" + id + ", name=" + name + ", dir=" + dir + "]";
		}

		
		
	}

}
